package com.github.service.impl;

import com.github.mapper.UserStatusMapper;
import com.github.service.UserStatusServer;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserStatusServerImpl implements UserStatusServer {
    @Autowired
    private UserStatusMapper userStatusMapper;

    @Override
    public boolean getServerStatus(String account) {
        return userStatusMapper.getServerStatus(account) == 1;
    }

    @Override
    public boolean getCardStatus(String account) {
        return userStatusMapper.getCardStatus(account) == 1;
    }

    @Override
    public boolean getVoiceStatus(String account) {
        return userStatusMapper.getVoiceStatus(account) == 1;
    }
}
